﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace _180FrameWork.Common
{
    public static class BaseDict
    {
        private static IDictionary<string, object> _dict = new Dictionary<string, object>();
        public static object GetValue(string key)
        {
            if (_dict.ContainsKey(key))
            {
                return _dict[key];
            }
            else
                return null;
        }
        public static void SetValue(string key, object value)
        {
            if (_dict.ContainsKey(key))
            {
                _dict[key] = value;
            }
            else
            {
                _dict.Add(key, value);
            }
        }
    }
}
